package com.atldy.commerce.service;

import com.atldy.commerce.account.BalanceInfo;
import com.atldy.commerce.pojo.EcommerceBalance;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 余额服务
 */
public interface EcommerceBalanceService extends IService<EcommerceBalance> {

    /**
     * 根据当前用户id获取余额信息
     */
    BalanceInfo getCurrentBalanceByUserId();

    /**
     * 扣减余额
     */
    BalanceInfo deductionsBalanceInfo(BalanceInfo balanceInfo);

}
